package com.jp.springmvc.repository.impl;

import com.jp.springmvc.repository.SpitterRepository;
import com.jp.springmvc.vo.Spitter;
import org.springframework.stereotype.Component;

/**
 * Title: SpitterRepositoryImpl
 * Description:
 *
 * @author zifan_jp
 * @version 1.0
 * @since Date: 2019-11-25 14:48
 * Copyright: Copyright (c) zifan_jp
 * ModificationHistory   Who    When    What
 * -----------------------------------------------
 */

@Component
public class SpitterRepositoryImpl implements SpitterRepository {
    @Override
    public Spitter save(Spitter spitter) {
        return  new Spitter("firstName", "lastName", "userName", "password");
    }

    @Override
    public Spitter findByUsername(String username) {
        return  new Spitter("firstName", "lastName", "userName", "password");
    }
}
